<?php
//Skripta mišljena za pridobivanja statusa trenutno prijavljenega uporabnika, implementirano samo za scrum masterja
include "../database.php";
session_start();
$response = array();
$id = $_SESSION['id'];
$query = "SELECT scrum_master FROM project WHERE project_id = (SELECT current_project FROM user WHERE id = '$id')";
if($id==mysql_fetch_array(executeQuery($query))[0]){
    $response['scrum_master'] = 1;
}
else {
    $response['scrum_master'] = 0;
}
echo json_encode($response);
?>
